#include "Keys.h"

Keys::Keys(void)
{
	Clear();
}

void Keys::Clear()
{
	ZeroMemory(&m_KeyDown,sizeof(m_KeyDown));
}

bool Keys::IsPressed(unsigned int key)
{
	return (key < MAX_KEYS)?(m_KeyDown[key] == true):false;
}

void  Keys::SetPressed(unsigned int key)
{
	if(key < MAX_KEYS)
		m_KeyDown[key] = true;
}

void  Keys::SetReleased(unsigned int key)
{
	if(key < MAX_KEYS)
		m_KeyDown[key] = false;
}

